<!DOCTYPE html>
<html>
<head>
    <title>登陆测试</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible">
    <meta name="renderer" content="webkit|ie-stand|ie-comp"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<script src="js/jquery.min.js"></script>
<script language="javascript">
    function login() {//传入表单参数
        $.ajax({
            url: "http://111.230.252.52/vuetest/init",
           // url: "http://localhost:8888/userExit",
            type: "GET",
           /* data:JSON.stringify({
                id: 87, cityId: "330100", cityName: "杭州市", provinceId: "330000"
            }),*/
            dataType: "json",
           contentType: 'application/json; charset=UTF-8',//防止乱码
        });
    }
</script>
<body>
<button onclick="login()">点击</button>
</body>
</html>